Special effect synchronization method and apparatus, and mobile terminal

ABSTRACT

A special effect synchronization method and apparatus, and a mobile terminal are provided. The method comprises: when a confirmation operation of a user for selecting music for a specified video file is received, downloading a music file selected by the user and a corresponding rhythm information file from a server; when the specified video file is played, playing the music file and adding a special effect according to the rhythm information file; and after the playback of the specified video file is ended, synthesizing the specified video file, the music file, and the special effect, and storing the same. Therefore, the problem of low activity of users due to monotonous matched music files can be solved, and a beneficial effect of improving the activity of users is achieved.

The present application claims the priority of Chinese patentapplication No. 201710876308.6, filed with Chinese Patent Office on Sep.25, 2017, and entitled “Special Effect Synchronization Method andApparatus and Mobile Terminal”, the content of which is incorporated byreference herein in its entirety.

FIELD

The present application relates to the technical field of softwareapplication, in particular to a special effect synchronization methodand apparatus and a mobile terminal.

BACKGROUND

Along with rapid development of the mobile terminal technology,application software with various functions arises at the right moment,bringing convenience and amusement to users. Among which, adding videoscaptured by users themselves with synchronized played music has become apopular entertainment fashion for users.

In related art, when a piece of music is selected for a certain video byusers, a music file is downloaded firstly from the network or otherplaces; then the music file is played when the certain video file isplayed; and finally the music file and the video file are synthesizedinto a target file, as such, when the video is opened and played byusers, the music file will be played synchronously as background music.

However, in the above process, the matched music file is monotonous,thereby leading to a low activity of users.

SUMMARY

The special effect synchronization method and apparatus and the mobileterminal provided in an embodiment of the present application canovercome the problem of low activity of users due to monotonous matchedmusic files, and can solve the problem of low activity of users throughadding special effects on the rhythm points.

In a first aspect, the present application provides a special effectsynchronization method, including:

when a confirmation operation of a user for selecting music for aspecified video file is received, downloading a music file selected bythe user and a corresponding rhythm information file from a server;

when the specified video file is played, playing the music file andadding a special effect according to the rhythm information file; and

after the playback of the specified video file is ended, synthesizingthe specified video file, the music file, and the special effect, andstoring the same.

Optionally, the step of adding a special effect according to the rhythminformation file includes:

for each rhythm point in the rhythm information file, if the intensityof the rhythm point is greater than a specified preset, adding a specialeffect when playing to the rhythm point.

Optionally, before the step of downloading a music file selected by theuser and a corresponding rhythm information file from a server when aconfirmation operation of a user for selecting music for a specifiedvideo file is received, the method further includes:

analyzing the specified music file in the server, and marking atimestamp corresponding to the rhythm point in the specified music file;

storing the timestamps corresponding to all the rhythm points of thespecified music file in the rhythm information file; and

uploading the rhythm information file to a server.

Optionally, before the step of uploading the rhythm information file toa server, the method further includes:

adding a file identification of the specified music file to a fileheader of a rhythm information file; or, determining a file name of therhythm information file according to the file identification of thespecified music file.

Optionally, the step of downloading a music file selected by the userand a corresponding rhythm information file from a server includes:

searching for a corresponding rhythm information file from the serveraccording to the file identification of the music file; and

downloading a music file selected by the user and the rhythm informationfile from a server.

In a second aspect, the present application provides a special effectsynchronization apparatus, including:

a file downloading module, configured to download a music file selectedby the user and a corresponding rhythm information file from a serverwhen a confirmation operation of a user for selecting music for aspecified video file is received;

a special effect adding module, configured to play the music file andadd a special effect according to the rhythm information file when thespecified video file is played; and

a special effect synchronization module, configured to synthesize thespecified video file, the music file, and the special effect, and storethe same after the playback of the specified video file is ended.

Optionally, the special effect adding module includes:

a special effect adding sub-module, configured to add a special effectwhen playing to the rhythm point for each rhythm point in the rhythminformation file, if the intensity of the rhythm point is greater than aspecified preset.

Optionally, before the file downloading module, the apparatus furtherincludes:

a rhythm point marking module, configured to analyze the specified musicfile in the server, and mark a timestamp corresponding to the rhythmpoint in the specified music file;

a rhythm information file generating module, configured to store thetimestamps corresponding to all the rhythm points of the specified musicfile in the rhythm information file; and

a rhythm information file uploading module, configured to upload therhythm information file to a server.

Optionally, before the rhythm information file uploading module, theapparatus further includes:

a first file identification adding module, configured to add a fileidentification of the specified music file to a file header of a rhythminformation file;

or a second file identification adding module, configured to determine afile name of the rhythm information file according to the fileidentification of the specified music file.

Optionally, the file downloading module includes:

a rhythm information file searching sub-module, configured to search fora corresponding rhythm information file from the server according to thefile identification of the music file; and

a file downloading sub-module, configured to download a music fileselected by the user and the rhythm information file from a server.

In a third aspect, the present application provides a mobile terminal,including a processor; and

a memory configured to store executable instructions of the processor;

wherein the processor is configured to:

download a music file selected by the user and a corresponding rhythminformation file from a server when a confirmation operation of a userfor selecting music for a specified video file is received;

play the music file and add a special effect according to the rhythminformation file when the specified video file is played; and

synthesize the specified video file, the music file, and the specialeffect, and store the same after the playback of the specified videofile is ended.

In a fourth aspect, the present application provides a non-temporarycomputer readable storage medium, configured to enable the mobileterminal to perform a special effect synchronization method when theinstructions in the storage medium are executed by a processor of themobile terminal, wherein the method includes:

downloading a music file selected by the user and a corresponding rhythminformation file from a server when a confirmation operation of a userfor selecting music for a specified video file is received;

playing the music file and adding a special effect according to therhythm information file when the specified video file is played; and

synthesizing the specified video file, the music file, and the specialeffect, and storing the same after the playback of the specified videofile is ended.

In a fifth aspect, the present application provides a computer programproduct containing instructions. When the computer program product isrunning on a computer, the computer can be enabled to perform thespecial effect synchronization method as mentioned in the first aspect.

It can be seen from the above technical solution that, when aconfirmation operation of a user for selecting music for a specifiedvideo file is received, a music file selected by the user and acorresponding rhythm information file are downloaded from a server; whenthe specified video file is played, the music file is played and aspecial effect is added according to the rhythm information file; andafter the playback of the specified video file is ended, the specifiedvideo file, the music file, and the special effect are synthesized andstored. Therefore, the problem of low activity of users due tomonotonous matched music files can be solved, and a beneficial effect ofimproving the activity of users is achieved.

The above description is merely a summary of the technical solution ofthe present application. In order to more clearly understand thetechnical means of the present application, such that the technicalmeans can be implemented based on contents in the description, and inorder to make the above and other objectives, characteristics andadvantages of the present application more obvious and understandable,specific embodiments of the present application will be enumeratedbelow.

BRIEF DESCRIPTION OF DRAWINGS

The drawings herein are incorporated into the description and constitutea part of the present description. The drawings show embodimentscomplying with the present invention, and are used for explainingprinciples of the present invention together with the description.

FIG. 1A shows a flow chart of steps of a special effect synchronizationmethod in Embodiment 1 of the present application;

FIG. 1B shows a schematic diagram of an interface added with specialeffects in an embodiment of the present application;

FIG. 2 shows a flow chart of steps of a special effect synchronizationmethod in Embodiment 2 of the present application;

FIG. 3 shows a structural diagram of a special effect synchronizationapparatus in Embodiment 3 of the present application;

FIG. 4 shows a structural diagram of a special effect synchronizationapparatus of Embodiment 4 of the present application;

FIG. 5 shows a block diagram of part of structures of a mobile phonerelated to a mobile terminal provided by an embodiment of the presentapplication.

DETAILED DESCRIPTION OF THE EMBODIMENTS

A clear and complete description of the technical solutions ofembodiments of the present application will be given below incombination with the accompanying drawings in embodiments of the presentapplication. Obviously, the described embodiments are only a part, butnot all, of the embodiments of the present application. Based on theembodiments of the present application, all the other embodimentsobtained by those of ordinary skill in the art without any creativeeffort shall all fall into the protection scope of the presentapplication.

A special effect synchronization method and apparatus and a mobileterminal provided in the present application will be introduced indetail below through several particular embodiments.

Embodiment 1

Please refer to FIG. 1A which shows a flow chart of steps of a specialeffect synchronization method in Embodiment 1 of the presentapplication, and particularly, the following steps are included.

Step 101, when a confirmation operation from a user for selecting musicfor a specified video file is received, downloading, from a server, amusic file selected by the user and a corresponding rhythm informationfile;

Embodiments of the present application are applicable to all theapplications equipped with a music adding function for a video file, forexample, Kwai.

Here the specified video can be a video captured by a user, and can alsobe a video stored locally or downloaded from the network, and this isnot limited in an embodiment of the present application.

A rhythm information file stores rhythm points in a music file andcorresponding timestamp information.

When a target music file is selected by a user on a server, the musicfile and its corresponding rhythm information file will be downloaded,so that a special effect can be added according to the rhythminformation file.

In actual applications, a special effect can also be turned on or off.As shown in the FIG. 1B, the special effect is turned on or off througha special effect button on a top right corner. When the special effectbutton is lighted up, the special effect is turned on; and when thespecial effect button is darkened, the special effect is turned off.Particularly, the special effect is turned off by default during firstuse, and users are prompted to light up the special effect button toturn on the special effect. It can be understood that, for a music filewith no rhythm information file, the special effect button is ashed,therefore, users cannot light up the special effect button, or thespecial effect button is not displayed.

Step 102, when the specified video file is played, playing the musicfile and adding a special effect according to the rhythm informationfile.

In actual applications, the music can be matched and a special effectcan be added as well when a user captures a video.

In particular, when a music file is played, a special effect is addedautomatically if a timestamp corresponding to a rhythm point recorded inthe rhythm information file is reached. Where the special effect can beany special effect in a special effect library, and can also be aspecial effect added by a user himself. It can be understood that, thespecial effect of each rhythm point can be the same or different.

Step 103, after the playback of the specified video file is ended,synthesizing the specified video file, the music file, and the specialeffect, and storing the same.

In actual applications, for a video being captured, the video file, themusic file and the special effect can be synthesized into one file afterthe operation indicating finish of video capturing of a user isreceived.

It can be understood that, the synthesized file is stored in a specifiedpath of the current terminal. Therefore, the user can upload thesynthesized file to a server, copy the file, and send the file to otherclients through various application softwares.

In embodiments of the present application, when a confirmation operationfrom a user for selecting music for a specified video file is received,a music file selected by the user and a corresponding rhythm informationfile are downloaded from a server; when the specified video file isplayed, the music file is played and a special effect is added accordingto the rhythm information file; and after the playback of the specifiedvideo file is ended, the specified video file, the music file, and thespecial effect are synthesized and stored. Therefore, the problem of lowactivity of users due to monotonous matched music files can be solved,and a beneficial effect of improving the activity of users is achieved.

Embodiment 2

Please refer to FIG. 2 which shows a flow chart of steps of a specialeffect synchronization method in Embodiment 2 of the presentapplication, and specifically, the following steps are included.

Step 201, analyzing the specified music file in the server, and markingtimestamps corresponding to the rhythm points in the specified musicfile.

Here, the timestamps can be accurate to a millisecond level.

Specifically, rhythm points of a music file can be specified throughprograms or manual analysis and can be marked, so as to write all therhythm points uniformly to a rhythm information file at one time.

Step 202, storing the timestamps corresponding to all the rhythm pointsof the specified music file in the rhythm information file.

Specifically, a rhythm information file is created under a specifiedpath and is opened, then the timestamps corresponding to all the rhythmpoints are written to a rhythm information file at one time, and finallythe rhythm information file is closed.

Step 203, adding a file identification of the specified music file to afile header of the rhythm information file.

In actual applications, in order to establish a correspondingrelationship between the music file and the rhythm information file, afile identification of a specified music file can be added to the rhythminformation file. Therefore, a corresponding rhythm information file canbe found according to a file identification.

Specifically, a file identification of a music file can be written to afile header of the rhythm information file.

Step 204, determining a file name of the rhythm information fileaccording to the file identification of the specified music file.

Specifically, a file identification, a prefix and/or a suffix of a musicfile can be combined to form a file name of a corresponding rhythminformation file. For example, if the file identification of a specifiedmusic file is 123456, then the file name of a rhythm information filecan be XX123456XX. It can be understood that, in embodiments of thepresent application, the positions and forms of the prefix and suffixare not limited.

It can be understood that, in step 203 and step 204, the correspondingrelationship between a music file and a rhythm information file isestablished through a file identification. In actual applications, oneof them can be chosen.

Step 205, uploading the rhythm information file to a server.

Here, the server is a remote server corresponding to an applicationwhich adds music for a video. A rhythm information file is saved to aspecified path in the server, and the path is different from the path ofthe music file.

Specifically, after a rhythm information file is uploaded to a server,the rhythm information file saved locally can be deleted or not deleted,which needs to be determined according to actual application scenarios.

It can be understood that, the rhythm information file needs to beuploaded to a server through the network, for example, a wireless localarea network or a mobile data network.

Step 206, searching for a corresponding rhythm information file from theserver according to the file identification of the music file when aconfirmation operation from a user for selecting music for a specifiedvideo file is received.

In step 203, as to each rhythm information file under a specified pathin a server, the file identification of the corresponding music file isread from a file header, and if the file identification is the fileidentification of the music file selected by the user, then the rhythminformation file is the rhythm information file corresponding to themusic file.

In step 204, as to each rhythm information file under a specified pathin a server, the file name of each file is obtained, and if the filename contains the file identification of the music file selected by theuser, then the rhythm file is the rhythm information file correspondingto the music file.

Step 207, downloading the music file selected by the user and the rhythminformation file from the server.

Specifically, through a wireless local area network or a mobile datanetwork, the music file and the rhythm information file are downloadedfrom the server to a local temporary cache. After a video with specificeffects is synthesized, the music file and the rhythm information fileare deleted from the local temporary cache.

Step 208, when the specified video file is played, playing the musicfile and adding a special effect according to the rhythm informationfile.

For this step, please refer to detailed description of step 102, andthis step will not be repeated redundantly herein.

Optionally, in another embodiment of the present application, step 208includes a sub-step 2081.

Sub-step 2081, for each rhythm point in the rhythm information file, ifthe intensity of the rhythm point is greater than a specified preset,adding a special effect when playing to the rhythm point.

Here a specified preset can be set according to actual applicationscenarios, and is not limited in an embodiment of the presentapplication.

Step 209, after the playback of the specified video file is ended,synthesizing the specified video file, the music file, and the specialeffect, and storing the same.

For this step, please refer to detailed description of step 103, andthis step will not be repeated redundantly herein.

In embodiments of the present application, when a confirmation operationfrom a user for selecting music for a specified video file is received,a music file selected by the user and a corresponding rhythm informationfile are downloaded from a server; when the specified video file isplayed, the music file is played and a special effect is added accordingto the rhythm information file; and after the playback of the specifiedvideo file is ended, the specified video file, the music file, and thespecial effect are synthesized and stored. Therefore, the problem of lowactivity of users due to monotonous matched music files can be solved,and a beneficial effect of improving the activity of users is achieved.In addition, rhythm points of a music file can also be analyzed inadvance, so as to add special effects according to rhythm points.

Embodiment 3

Please refer to FIG. 3 which shows a structural diagram of a specialeffect synchronization apparatus in Embodiment 3 of the presentapplication.

A file downloading module 301 is configured to download a music fileselected by the user and a corresponding rhythm information file from aserver when a confirmation operation from a user for selecting music fora specified video file is received.

A special effect adding module 302 is configured to play the music fileand add a special effect according to the rhythm information file whenthe specified video file is played.

A special effect synchronization module 303 is configured to synthesizethe specified video file, the music file, and the special effect, andstore the same after the playback of the specified video file is ended.

In an embodiment of the present application, when a confirmationoperation from a user for selecting music for a specified video file isreceived, a music file selected by the user and a corresponding rhythminformation file are downloaded from a server; when the specified videofile is played, the music file is played and a special effect is addedaccording to the rhythm information file; and after the playback of thespecified video file is ended, the specified video file, the music file,and the special effect are synthesized and stored. Therefore, theproblem of low activity of users due to monotonous matched music filescan be solved, and a beneficial effect of improving the activity ofusers is achieved.

Embodiment 3 is a device embodiment corresponding to methodembodiment 1. Please refer to Embodiment 1 for detailed description, andthe device embodiment will not be repeated redundantly herein.

Embodiment 4

Please refer to FIG. 4 which shows a structural diagram of a mobileterminal of Embodiment 4 of the present application.

A rhythm point marking module 401 is configured to analyze the specifiedmusic file in the server, and mark timestamps corresponding to therhythm points in the specified music file.

A rhythm information file generating module 402 is configured to storethe timestamps corresponding to all the rhythm points of the specifiedmusic file in the rhythm information file.

A first file identification adding module 403 is configured to add afile identification of the specified music file to a file header of therhythm information file.

A second file identification adding module 404 is configured todetermine a file name of the rhythm information file according to thefile identification of the specified music file.

A rhythm information file uploading module 405 is configured to uploadthe rhythm information file to the server.

A file downloading module 406 is configured to download a music fileselected by the user and a corresponding rhythm information file fromthe server when a confirmation operation from a user for selecting musicfor a specified video file is received. Optionally, in an embodiment ofthe present application, the above file downloading module 406 includes:

a rhythm information file searching sub-module 4061, configured tosearching for a corresponding rhythm information file from the serveraccording to the file identification of the music file; and

a file downloading sub-module 4062, configured to download a music fileselected by the user and the rhythm information file from a server.

A special effect adding module 407 is configured to play the music fileand add a special effect according to the rhythm information file whenthe specified video file is played.

A special effect synchronization module 408 is configured to synthesizethe specified video file, the music file, and the special effect, andstore the same after the playback of the specified video file is ended.

Optionally, in another embodiment of the present application, the abovespecial effect adding module 407 includes:

a special effect adding sub-module 4071, configured to add a specialeffect when playing to the rhythm point for each rhythm point in therhythm information file, if the intensity of the rhythm point is greaterthan a specified preset.

In an embodiment of the present application, when a confirmationoperation from a user for selecting music for a specified video file isreceived, a music file selected by the user and a corresponding rhythminformation file are downloaded from a server; when the specified videofile is played, the music file is played and a special effect is addedaccording to the rhythm information file; and after the playback of thespecified video file is ended, the specified video file, the music file,and the special effect are synthesized and stored. Therefore, theproblem of low activity of users due to monotonous matched music filescan be solved, and a beneficial effect of improving the activity ofusers is achieved. In addition, rhythm points of a music file can alsobe analyzed in advance, so as to add special effects according to rhythmpoints.

Embodiment 4 is a device embodiment corresponding to method embodiment2. Please refer to Embodiment 2 for detailed description, and the deviceembodiment will not be repeated redundantly herein.

Since a device embodiment is basically similar to a method embodiment,so the description is simple, and for related parts, please refer topart of the descriptions of the method embodiment.

An embodiment of the present application further provides a mobileterminal. As shown in FIG. 5, to facilitate description, only the partrelated to the embodiment of the present application is shown, and forthose specific technical details not disclosed, please refer to the partof method in an embodiment of the present application. The terminal canbe any arbitrary terminal device including a mobile phone, a tabletcomputer, a PDA (Personal Digital Assistant), a POS (Point of Sales),and a vehicle-mounted computer. The terminal being a mobile phone istaken as an example here.

FIG. 5 shows a block diagram of part of structures of a mobile phonerelated to a mobile terminal provided by an embodiment of the presentapplication. Please refer to FIG. 5, and the mobile phone includes: anRF (Radio Frequency) circuit 510, a memory 520, an input unit 530, adisplay unit 540, a sensor 550, an audio circuit 560, a WiFi (wirelessfidelity) module 570, a processor 580, a power supply 590 and otherparts. Those skilled in the art should understand that, the mobile phonestructure shown in FIG. 5 does not constitute a limitation to a mobilephone, and can include parts which are more or less than the parts inthe figure, or can combine certain parts, or can arrange differentparts.

Each component of a mobile phone is introduced in detail below incombination with FIG. 5.

The RF circuit 510 can be configured to send and receive information orsend and receive signals during a call, particularly, the RF circuit 510receives downlink information of a base station and sends to theprocessor 580 for processing; in addition, the RF circuit 510 sendsdesigned uplink data to a base station. Generally, the RF circuit 510includes but is not limited to an antenna, at least one amplifier, atransceiver, a coupler, an LNA (Low Noise Amplifier) and a duplexer. Inaddition, the RF circuit 510 can also communicate with the network andother devices through wireless communication. The above wirelesscommunication can use any arbitrary communication standard or protocolwhich includes but is not limited to GSM (Global System of Mobilecommunication), GPRS (General Packet Radio Service), CDMA (Code DivisionMultiple Access), WCDMA (Wideband Code Division Multiple Access), LTE(Long Term Evolution), an E-mail, SMS (Short Messaging Service) and thelike.

A memory 520 can be configured to store software programs and modules,and the processor 580 is configured to perform various functionalapplications and data processing of a mobile phone through runningsoftware programs and modules stored in the memory 520. The memory 520can mainly include a storage program area and a storage data area, wherethe storage program area can store operating systems, and applicationsrequired by at least one function (for example, a sound playbackfunction, an image playback function); and the storage data area canstore data (for example, voice data, phone book, etc.) created accordingto use of a mobile phone. In addition, the memory 520 can include a highspeed random access memory, and can also include a nonvolatile memory,for example, at least one disk storage device, a flash memory device, orother volatile solid state storage devices.

The input unit 530 can be configured to receive input numeric orcharacter information, and generate keying signal input related to usersetting and function control of a mobile phone. Specifically, the inputunit 530 can include a touch panel 531 and other input devices 532. Thetouch panel 531 is also referred to as a touch screen, can collect touchoperations of a user on or near the touch panel (for example, operationsof a user on or near the touch panel 531 by using any proper objects oraccessories such as fingers and touch pens), and can drive correspondingconnecting devices according to a preset program. Optionally, the touchpanel 531 can also include a touch detection device and a touchcontroller. Where the touch detection device detects touch direction ofa user, detects signals brought by touch operations, and sends thesignals to a touch controller; the touch controller receives touchinformation from a touch detection device, converts touch informationinto a touch spot coordinate and sends to a processor 580, and receivesand executes commands sent from the processor 580. In addition, thetouch panel 531 can be realized through various types such as aresistance type, a capacitance type, infrared rays and surface acousticwaves. In addition to the touch panel 531, the input unit 530 can alsoinclude other input devices 532. Specifically, other input devices 532can include but is not limited to one or more of a physical keyboard, afunction key (such as a volume control key and a switch key), atrackball, a mouse, and an operating rod.

The display unit 540 can be configured to display information input by auser or information provided to a user and various menus of a mobilephone. The display unit 540 can include a display panel 541, optionally,the display panel 541 can be configured in such forms as LCD (LiquidCrystal Display), OLED (Organic Light-Emitting Diode), etc. Further, atouch panel 531 can cover the display panel 541. When the touch panel531 detects a touch operation on or near the touch panel 531, the touchoperation is sent to the processor 580 to determine the type of thetouch event, and then the processor 580 provides corresponding visualoutput on the display panel 541 according to the type of the touchevent. Although in FIG. 5, the touch panel 531 and the display panel 541serve as two independent parts to realize input and output functions ofa mobile phone, however, in some embodiments, the touch panel 531 can beintegrated with the display panel 541 to realize the input and outputfunctions of a mobile phone.

The mobile phone can also include at least one sensor 550, such as anoptical sensor, a motion sensor and other sensors. Specifically, theoptical sensor can include an ambient light sensor and a proximitysensor, wherein the ambient light sensor can adjust the brightness of adisplay panel 541 according to brightness of the ambient light, and theproximity sensor can turn off the display panel 541 and/or backlightwhen a mobile phone moves to the ear. As one type of motion sensor, anaccelerometer sensor can detect the magnitude of accelerations in alldirections (generally three axes), can detect magnitude and direction ofgravity during a static state, can be applied to applications ofrecognition of mobile phone postures (for example, switching betweenportrait and landscape, related games, and attitude calibration of amagnetometer), and can be applied to functions related to vibrationrecognition (such as pedometers, knocks); while other sensors, such asgyroscopes, barometers, hygrometers, thermometers, infrared sensors,also equipped on a mobile phone are no longer repeated redundantlyherein.

An audio circuit 560, a loudspeaker 561 and a microphone 562 can providean audio interface between a user and a mobile phone. The audio circuit560 can transmit the received electric signals after conversion of audiodata to a loudspeaker 561, and the electric signals are converted intovoice signals and output by a loudspeaker 561; on the other hand, themicrophone 562 converts collected voice signals into electric signals,the electric signals are received by an audio circuit 560 and areconverted into audio data, the audio data are output to a processor 580for processing, and the processed audio data are sent to for exampleanother mobile phone through an RF circuit 510, or the audio data areoutput to the memory 520 for further processing.

WiFi belongs to short-distance wireless transmission technology. Amobile phone can help users to send and receive e-mails, browse webpage,and visit streaming media through a WiFi module 570, and provide tousers wireless broadband internet access. Although FIG. 5 shows the WiFimodule 570, however, it can be understood that, the WiFi module 570 doesnot belong to a necessary component of a mobile phone, and can becompletely omitted according to requirements within the scope of notchanging the essence of the present application.

A processor 580 is a control center of a mobile phone, and is connectedwith each part of the whole mobile phone by utilizing various interfacesand lines. The processor 580 performs various functions of a mobilephone and processes data through running or executing software programsand/or modules stored in the memory 520 and calling data stored in thememory 520, so as to monitor the mobile phone in an overall manner.Optionally, the processor 580 can include one or more processing units;preferably, the processor 580 can integrate application processors andmodem processors, wherein the application processor mainly handles withoperating systems, user interfaces, and application programs, while amodem processor mainly handles with wireless communication. It can beunderstood that, the above modem processor can also not be integratedinto a processor 580.

The mobile phone further includes a power supply 590 (for example, abattery) which supplies power to each part, preferably, the power supplycan be logically connected with the processor 580 through a power supplymanagement system, so as to realize such functions as management ofcharging and discharging and management of power dissipation through apower supply management system.

Although not shown, the mobile phone can also include a camera, abluetooth module, etc., which will not be repeated redundantly herein.

In an embodiment of the present application, the processor 580 containedin the terminal further has the following functions: when a confirmationoperation from a user for selecting music for a specified video file isreceived, downloading a music file selected by the user and acorresponding rhythm information file from a server; when the specifiedvideo file is played, playing the music file and adding a special effectaccording to the rhythm information file; and after the playback of thespecified video file is ended, synthesizing the specified video file,the music file, and the special effect, and storing the same.

Optionally, the processor 580 further has the following function: foreach rhythm point in the rhythm information file, if the intensity ofthe rhythm point is greater than a specified preset, adding a specialeffect when playing to the rhythm point.

Optionally, the processor 580 further has the following functions:analyzing the specified music file in the server, and marking timestampscorresponding to the rhythm points in the specified music file; storingthe timestamps corresponding to all the rhythm points of the specifiedmusic file in the rhythm information file; and uploading the rhythminformation file to a server.

Optionally, the processor 580 further has the following functions:adding a file identification of the specified music file to a fileheader of a rhythm information file; or, determining a file name of therhythm information file according to the file identification of thespecified music file.

Optionally, the processor 580 further has the following functions:searching for a corresponding rhythm information file from the serveraccording to the file identification of the music file; and downloadinga music file selected by the user and the rhythm information file from aserver.

It can be seen that, in an embodiment of the present application, when aconfirmation operation of a user for selecting music for a specifiedvideo file is received, a music file selected by the user and acorresponding rhythm information file are downloaded from a server; whenthe specified video file is played, the music file is played and aspecial effect is added according to the rhythm information file; andafter the playback of the specified video file is ended, the specifiedvideo file, the music file, and the special effect are synthesized andstored. Therefore, the problem of low activity of users due tomonotonous matched music files can be solved, and a beneficial effect ofimproving the activity of users is achieved. In addition, rhythm pointsof a music file can also be analyzed in advance, so as to add specialeffects according to rhythm points.

The present application provides a non-temporary computer readablestorage medium configured to enable the mobile terminal to perform aspecial effect synchronization method when the instructions in thestorage medium are executed by a processor of the mobile terminal,wherein the method includes:

when a confirmation operation from a user for selecting music for aspecified video file is received, downloading a music file selected bythe user and a corresponding rhythm information file from a server;

when the specified video file is played, playing the music file andadding a special effect according to the rhythm information file; and

after the playback of the specified video file is ended, synthesizingthe specified video file, the music file, and the special effect, andstoring the same.

An embodiment of the present application further provides a computerprogram product containing instructions. When the computer programproduct is running on a computer, the computer can be enabled to performthe above special effect synchronization method.

Each embodiment in the present description is described in a progressivemanner. Each embodiment highlights the differences with otherembodiments, and the same and similar parts among each embodiment can bereferred to mutually.

The algorithm and display provided herein are not inherently related toany specific computer, virtual system or other devices. Variousgeneral-purpose systems can also be used together with teachings basedon this. According to the above description, the structures required toconstruct such type of system are apparent. In addition, the presentapplication is also not aiming at any specific programming language. Itshould be understood that, various programming languages can be utilizedto realize the contents of the present application described herein, andthe above description on specific languages is merely for disclosingbest implementation mode of the present application.

A large number of specific details are described in the descriptionprovided herein. However, it can be understood that, the embodiments ofthe present application can be practiced without these specific details.In some examples, publically known methods, structures and technologiesare not shown in detail, so as not to obscure the understanding of thepresent description.

Similarly, it should be understood that, in order to simplify thepresent disclosure and help to understand one or more applicationaspects, in the description of illustrative embodiments of the presentapplication, the characteristics of the present application aresometimes grouped together into a single embodiment, a figure or thedescription thereof. However, the method of the present disclosureshould not be explained to reflect the following intentions: that is,the present application to be protected claims more characteristics thanthe characteristics definitely recorded in each claim. More specificallyspeaking, as reflected in the following claims, the application has lesscharacteristics than all the characteristics of a single embodimentdisclosed previously. Therefore, the claims abiding by specificembodiments are hereby explicitly incorporated into the specificembodiment, wherein each claim itself serves as a single embodiment ofthe present application.

Those skilled in the art can understand that, modules in a device in theembodiment can be changed self-adaptively and the modules can be set inone or more devices different from those in the present embodiment. Themodules or units or components in the embodiment can be combined intoone module or unit or component, and in addition, they can be dividedinto multiple sub-modules or sub-units or sub-components. Except that atleast some such characteristics and/or processes or units are mutuallyexclusive, any combination can be adopted to combine all thecharacteristics disclosed in the present description (includingaccompanying claims, abstract and drawings) and all the processes orunits of any method or device so disclosed. Unless otherwise definitelydescribed, each characteristic disclosed in the present description(including accompanying claims, abstract and drawings) can besubstituted by alternative characteristics which provide identical,equivalent or similar purposes.

In addition, those skilled in the art can understand that, although someembodiments described herein include some characteristics contained inother embodiments rather than other characteristics, the combination ofcharacteristics of different embodiments means that the characteristicsfall within the scope of the present application and form differentembodiments. For example, in the following claims, any of theembodiments to be protected can be used in any arbitrary combinedmanner.

The individual component embodiments in the present application may beimplemented in hardware, or in software modules running on one or moreprocessors, or in a combination of them. Those skilled in the art shouldunderstand that, microprocessors or digital signal processors (DSP) canbe used in practice to realize some or all of the functions of some orall of the components in the mobile terminal device in the embodiment ofthe present application. The present application may also be implementedas part or all of the equipment or device programs (for example,computer programs and computer program products) used to execute themethods described herein. Such programs which realize the presentapplication may be stored on a computer readable medium, or may be in aform of having one or more signals. Such signals can be downloaded fromInternet sites, or can be available on carrier signals, or can beprovided in any other form.

It should be noted that, the above embodiments are used for illustratingthe present application rather than limiting the present application,and those skilled in the art may design alternative embodiments withoutdeparting from the scope of the attached claims. In the claims, noreference numerals between parentheses shall be constructed to limit theclaims. The word “include” does not exclude elements or steps that arenot listed in the claims. The word “a” or “one” preceding the elementdoes not exclude the existence of more than one such element. Thepresent application may be realized by means of hardware consisting of anumber of different elements and by means of a properly programmedcomputer. In the unit claims that list a number of devices, a number ofthese devices can be embodied by the same hardware item. The use ofwords “first, second, and third” does not indicate any order. Thesewords can be interpreted as names.

Those skilled in the art can be aware that, the unit and algorithm stepsof each example described in combination with embodiments disclosed inan embodiment of the present application can be realized throughelectronic hardware or a combination of computer software and electronichardware. Whether these functions are performed through hardware orsoftware depends on specific applications and design constraints oftechnical solutions. Those skilled in the art can use different methodsto realize the described function for each specific application,however, such realization should not be deemed as exceeding the scope ofthe present application.

Those skilled in the art can clearly understand that, to facilitate andsimplify description, for the specific operating processes of a system,device and unit described above, please refer to corresponding processesin the above method embodiments, and such specific operating processeswill not be repeated redundantly herein.

In an embodiment provided by the present application, it should beunderstood that, the disclosed device and method should be realizedthrough other manners. For example, the device embodiments describedabove are merely schematic, for example, the division of units is merelya division of logic functions, and other division manners are availableduring actual implementation, for example, multiple units or componentscan be combined or integrated into another system, or some features canbe omitted or not performed. As to another point, the displayed ordiscussed mutual coupling or direct coupling or communication connectioncan be indirect coupling or communication connection via someinterfaces, devices or units, and can also be in electrical, mechanicalor other forms.

The units described as a separate part can be or cannot be separatedphysically, and the parts displayed as a unit can be and cannot bephysical units, that is, the parts can be located in one place, or canbe distributed in multiple network units. Part or all of the units canbe selected to realize the purpose of the solution of the presentembodiment according to actual requirements.

In addition, in each embodiment of the present application, the functionunits can be integrated in a processing unit, each unit can also existsingly and physically, and two or more units can also be integrated inone unit.

If the functions are realized in the form of software function unit andsold or used as independent product, the functions can be stored in acomputer readable storage medium. Based on such understanding, thetechnical solutions of the present application essentially or the partcontributing to related art or the part of the technical solution can beembodied in the form of a software product. The computer softwareproducts are stored in a storage medium, including several instructionsto make a computer device (which can be a personal computer, a server,or a network device, etc.) perform all or part of the steps of themethod of each embodiment in the present application. The above storagemedium includes: USB flash disk, mobile hard disk, ROM, RAM, diskette orCD-ROM and other media that can store program codes.

What is described above is only specific embodiments of the presentapplication, however, the protection scope of the present application isnot limited to this. Those skilled in the art can easily think ofchanges or substitutions within the technical scope disclosed in thepresent application, and such changes or substitutions shall fall withinthe protection scope of the present application. Therefore, theprotection scope of the present application shall be subject to theprotection scope of the claims.

1. A special effect synchronization method, comprising: when aconfirmation operation from a user for selecting music for a specifiedvideo file is received, downloading a music file selected by the userand a rhythm information file corresponding to the music file from aserver; when the specified video file is played, playing the music fileand adding a special effect according to the rhythm information file;and after playback of the specified video file is ended, synthesizingthe specified video file, the music file, and the special effect, andstoring the same.
 2. The method of claim 1, wherein the step of adding aspecial effect according to the rhythm information file comprises: foreach rhythm point in the rhythm information file, if an intensity of therhythm point is greater than a specified threshold, adding a specialeffect when playing to the rhythm point.
 3. The method of claim 1,wherein before the step of downloading a music file selected by the userand a corresponding rhythm information file from a server when theconfirmation operation from the user for selecting music for thespecified video file is received, the method further comprises:analyzing a specified music file in the server, and marking timestampscorresponding to rhythm points in the specified music file; storing thetimestamps corresponding to all the rhythm points of the specified musicfile in a rhythm information file; and uploading the rhythm informationfile to the server.
 4. The method of claim 3, wherein before the step ofuploading the rhythm information file to the server, the method furthercomprises: adding a file identification of the specified music file to afile header of the rhythm information file; or, determining a file nameof the rhythm information file according to the file identification ofthe specified music file.
 5. The method of claim 4, wherein the step ofdownloading a music file selected by the user and a rhythm informationfile corresponding to the music file from the server comprises:searching for a corresponding rhythm information file from the serveraccording to the file identification of the music file; and downloadingthe music file selected by the user and the rhythm information file fromthe server.
 6. (canceled)
 7. (canceled)
 8. (canceled)
 9. (canceled) 10.(canceled)
 11. A mobile terminal, comprising a processer; and a memoryconfigured to store instructions executed by the processor; wherein theprocessor is configured to: download a music file selected by a user anda rhythm information file corresponding to the music file from a serverwhen a confirmation operation from the user for selecting music for aspecified video file is received; play the music file and add a specialeffect according to the rhythm information file when the specified videofile is played; and synthesize the specified video file, the music file,and the special effect, and store a same after playback of the specifiedvideo file is ended.
 12. A non-temporary computer readable storagemedium, configured to enable the mobile terminal to perform a specialeffect synchronization method when the instructions in the storagemedium are executed by a processor of the mobile terminal, wherein themethod comprises: downloading a music file selected by a user and arhythm information file corresponding to the music file from a serverwhen a confirmation operation from the user for selecting music for aspecified video file is received; playing the music file and adding aspecial effect according to the rhythm information file when thespecified video file is played; and synthesizing the specified videofile, the music file, and the special effect, and storing a same afterplayback of the specified video file is ended.
 13. The terminal of claim11, wherein the processor configured to add a special effect accordingto the rhythm information file is configured to: for each rhythm pointin the rhythm information file, if an intensity of the rhythm point isgreater than a specified threshold, add a special effect when playing tothe rhythm point.
 14. The terminal of claim 11, wherein before the stepof downloading a music file selected by the user and a correspondingrhythm information file from a server when the confirmation operationfrom the user for selecting music for the specified video file isreceived, the processor is further configured to: analyze a specifiedmusic file in the server, and marking timestamps corresponding to rhythmpoints in the specified music file; store the timestamps correspondingto all the rhythm points of the specified music file in a rhythminformation file; and upload the rhythm information file to the server.15. The terminal of claim 14, wherein before the step of uploading therhythm information file to the server, the processor is furtherconfigured to: add a file identification of the specified music file toa file header of the rhythm information file; or, determine a file nameof the rhythm information file according to the file identification ofthe specified music file.
 16. The terminal of claim 15, wherein theprocessor configured to download a music file selected by the user and arhythm information file corresponding to the music file from the serveris further configured to: search for a corresponding rhythm informationfile from the server according to the file identification of the musicfile; and download the music file selected by the user and the rhythminformation file from the server.